import request from "@/utils/request"

// 新增检查表
export function getUnitList (data) {
  return request({
    url: "/unit/list",
    method: "post",
    data
  })
}

export function getSortList (data) {
  return request({
    url: "/sort/list",
    method: "post",
    data
  })
}

export function getWarehouseList (data) {
  return request({
    url: "/warehouse/list",
    method: "post",
    data
  })
}

export function postOutBoundAdd (data) {
  return request({
    url: "/outBound/add",
    method: "post",
    data
  })
}

export function postOutBoundUpdate (data) {
  return request({
    url: "/outBound/update",
    method: "put",
    data
  })
}

export function getOutBoundList (data) {
  return request({
    url: "/outBound/list",
    method: "post",
    data
  })
}

export function getOutBoundDetail (data) {
  return request({
    url: "/outBound/detail",
    method: "post",
    data
  })
}

export function getAllGoods (data) {
  return request({
    url: "/inBound/allGoods",
    method: "post",
    data
  })
}

export function getStoreNum (data) {
  return request({
    url: "/outBound/getStoreNum",
    method: "post",
    data
  })
}

export function getStoreNumList (data) {
  return request({
    url: "/inBound/getStoreNumList",
    method: "post",
    data
  })
}

export function allGoodsList (data) {
  return request({
    url: "/inBound/allGoodsList",
    method: "post",
    data
  })
}

export function postOutBoundDelete (data) {
  return request({
    url: "/outBound/delete",
    method: "delete",
    data
  })
}

export function getMaxOutNumber (data) {
  return request({
    url: "/outBound/getMaxOutNumber",
    method: "post",
    data
  })
}
